<?php

/**
 * Swat Loader
 */
require_once 'Swat/SwatAutoloader.php';
SwatAutoloader::addRule('/^Swat(.*)/', 'Swat/Swat$1.php', 1);
SwatAutoloader::addRule('/^Swat(.*)?Exception$/', 'Swat/exceptions/Swat$1Exception.php', 1);

/**
 * Zend Loader
 */
require_once 'Zend/Loader.php';

/**
 * Init
 */
Zend_Loader::registerAutoload();


/**
 * Database Connection
 */
$configArray = array( 
    'webhost' => 'localhost', 
    'database' => array( 
        'type'     => 'Pdo_Mysql', 
        'host'     => 'localhost', 
        'username' => 'root', 
        'password' => '', 
        'name'     => 'irishBrushy' 
    ) 
); 

$config = new Zend_Config($configArray); 
Zend_Registry::set('config', $config);
Zend_Registry::set('startTime', microtime(true));


/*
 * Front Controller
 */
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory('application/modules');
$front->dispatch();
?>
